<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
 
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<form class="form-signin"  action="<c:url value='../j_spring_security_check' />" method="post" >
	<h2 class="form-signin-heading">Please sign in</h2>
	<c:if test="${not empty error}">
		<div class="errorblock">
			Your login attempt was not successful, try again.<br /> Caused :
			${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
		</div>
	</c:if>
	<input type="text" name="j_username" class="form-control" placeholder="Login" required autofocus> 
	<input type="password" name="j_password" class="form-control" placeholder="Password" required> 
	<label class="checkbox"> <input type="checkbox" value="remember-me">Remember me</label>
	<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</form>